
<%@page import="com.printeverywhere.util.AttributeConstants"%>
<%@page import="com.printeverywhere.util.SessionUtil"%>
<%@page import="com.printeverywhere.util.CommonUtil"%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String affiliateLink = "registrationForm.htm?" + AttributeConstants.REFERAL + "=";
	affiliateLink += CommonUtil.encrypt(String.valueOf(SessionUtil.getUser(request).getId()));
%>

<s:set name="user" var="user" value="%{#session.user}" />


<s:set var="categoryDisplay" value="%{#attr.categoryDisplay}"></s:set>
<s:if test="%{categoryDisplay==null}">
<s:set var="categoryDisplay" value="false" ></s:set>
</s:if>

<s:if test="%{categoryDisplay==null || !categoryDisplay}">
<div style="margin: 0px 0px 16px 0px">
	<div style="margin:0px 0px 0px 0px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td width="9" class="grey-header-bg-left">&nbsp;</td>
	    <td align="left" class="grey-header-bg"><div class="white-header-text"><s:text name="lable.frontuserleft.myaccount" /></div></td>
	    <td width="9" class="grey-header-bg-right"></td>
	  </tr>
	</table>
	</div>
	 <div style="margin:0px 5px 0px 5px">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td rowspan="2" valign="top">
					<div style="margin: 10px 0px 0px 0px">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td>
									<a href="overview.htm" class="categories-arrow-text"><s:text name="lable.frontuserleft.Overview" /></a>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td><a href="sellAuctions.htm?t=auction" class="categories-arrow-text" onmouseover="mopen('dropmenu11', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.Selling" /></a></td>
							</tr>
							<tr>
								<td align="center" valign="top" class="grid-bg common-text" id="mddm" width="10%">
									<div id="dropmenu11" onmouseover="mcancelclosetime()"
										onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="sellAuctions.htm?t=auction"><s:text name="lable.frontuserleft.Auctions" /> <span
											style="font-weight: normal;">(<s:property value="#attr.myAccountCount.sellingAuction"/>)</span> </a>
										<a href="sellFixedPrice.htm?t=fixed"><s:text name="lable.frontuserleft.Fixedprice" /><span
											style="font-weight: normal;">(<s:property value="#attr.myAccountCount.sellingFixedPrice"/>)</span> </a>
										<a href="sellShops.htm?t=shops"><s:text name="lable.frontuserleft.Shops" /> <span
											style="font-weight: normal;">(<s:property value="#attr.myAccountCount.sellingShops"/>)</span> </a>
										<a href="sellSold.htm?t=sold"><s:text name="lable.frontuserleft.Sold" /> <span
											style="font-weight: normal;">(<s:property value="#attr.myAccountCount.sellingSold"/>)</span> </a>
										<a href="sellNotSold.htm?t=notSold"><s:text name="lable.frontuserleft.Notsold" /> <span
											style="font-weight: normal;">(<s:property value="#attr.myAccountCount.sellingNotSold"/>)</span> </a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="buyWatching.htm" class="categories-arrow-text" onmouseover="mopen('dropmenu21', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.Buying" /></a>
								</td>
							</tr>
							<tr>
								<td id="mddm">
									<div id="dropmenu21" onmouseover="mcancelclosetime()"
										onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="buyWatching.htm"><s:text name="lable.frontuserleft.Watching" />
											<span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.buyingWatching"/>)</span> </a>
										<a href="buyBidding.htm"><s:text name="lable.frontuserleft.Bidding" />
											<span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.buyingBidding"/>)</span> </a>
										<a href="buyPurchase.htm"><s:text name="lable.frontuserleft.Purchased" />
											<span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.buyingPurchased"/>)</span> </a>
										<a href="buyLost.htm"><s:text name="lable.frontuserleft.Lost" />
											<span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.buyingLost"/>)</span> </a>
										<a href="buyMyOffer.htm"><s:text name="lable.frontuserleft.Myoffers" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.buyingMyOffers"/>)</span> </a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="#" class="categories-arrow-text" onmouseover="mopen('dropmenu31', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.Itemswanted" /></a>
								</td>
							</tr>
							<tr>
								<td id="mddm">
									<div id="dropmenu31" onmouseover="mcancelclosetime()"
										onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="myWanted.htm"><s:text name="lable.frontuserleft.Mywanteds" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.itemWantedMyWanteds"/>)</span> </a>
										<a href="myWantedWatchingOthers.htm"><s:text name="lable.frontuserleft.Watchingothers" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.itemWantedWatchingOthers"/>)</span> </a>
										<a href="myOffersWanted.htm"><s:text name="lable.frontuserleft.Myoffers" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.itemWantedMyOffers"/>)</span> </a>
										<a href="myWantedPurchased.htm"><s:text name="lable.frontuserleft.Purchased" />
											<span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.itemWantedPurchased"/>)</span> </a>
										<a href="myWantedSold.htm"><s:text name="lable.frontuserleft.Sold" />
											<span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.itemWantedSold"/>)</span> </a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="#" class="categories-arrow-text" onmouseover="mopen('dropmenu91', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.Tenders" /></a>
								</td>
							</tr>
							<tr>
								<td id="mddm">
									<div id="dropmenu91" onmouseover="mcancelclosetime()"
										onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="myTenderWanted.htm"><s:text name="lable.frontuserleft.MyTenders" /><span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.tenderMyWanteds"/>)</span> </a>
										<a href="tenderWatchingOthers.htm"><s:text name="lable.frontuserleft.Watching" />
											 <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.tenderWatchingOthers"/>)</span> </a>
										<a href="myTenderOffers.htm"><s:text name="lable.frontuserleft.Myoffers" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.tenderMyOffers"/>)</span> </a>
										<a href="myTenderPurchased.htm"><s:text name="lable.frontuserleft.Purchased" />
											<span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.tenderPurchased"/>)</span> </a>
										<a href="myTenderSold.htm"><s:text name="lable.frontuserleft.Sold" />
											<span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.tenderSold"/>)</span> </a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="showFeedbackForum.htm" class="categories-arrow-text"><s:text name="lable.frontuserleft.Feedbackforum" /></a>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="favoriteCategories.htm" class="categories-arrow-text" onmouseover="mopen('dropmenu41', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.Myfavorites" /></a>
								</td>
							</tr>
							<tr>
								<td id="mddm">
									<div id="dropmenu41" onmouseover="mcancelclosetime()"
										onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="favoriteCategories.htm"><s:text name="lable.frontuserleft.Categories" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.favoriteCategories"/>)</span> </a>
										<a href="favoriteUsers.htm"><s:text name="lable.frontuserleft.Users" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.favoriteUsers"/>)</span> </a>
										<a href="favoriteSearches.htm"><s:text name="lable.frontuserleft.Searches" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.favoriteSearches"/>)</span> </a>
										<a href="favoriteShops.htm"><s:text name="lable.frontuserleft.Shops" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.favoriteShops"/>)</span> </a>
										<a href="favoriteProfile.htm"><s:text name="lable.frontuserleft.Companyprofiles" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.favoriteCompany"/>)</span> </a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="showShop.htm" class="categories-arrow-text"><s:text name="lable.frontuserleft.Shopsettings" /></a>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="manageCreditCard.htm" class="categories-arrow-text" onmouseover="mopen('dropmenu51', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.Moneymanager" /></a>
								</td>
							</tr>
							<tr>
								<td id="mddm">
									<div id="dropmenu51" onmouseover="mcancelclosetime()"
										onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="manageCreditCard.htm"
											class="leftnav"><s:text name="lable.frontuserleft.ManageCreditCards" /></a>
										<a href="manageBankAccount.htm"
											class="leftnav"><s:text name="lable.frontuserleft.ManageBankAccounts" /> </a>
										<a href="showPaymentActivity.htm"
											class="leftnav"><s:text name="lable.frontuserleft.PaymentActivity" /> </a>
										<a href="transactionNotYetInvoiced.htm"
											class="leftnav"><s:text name="lable.frontuserleft.Transactionsnotyetinvoiced" /> </a>
										<a href="showMakeCreditCardDeposit.htm"><s:text name="lable.frontuserleft.Makecreditcarddeposit" /> </a>
										<a href="showMakeElectronicBankTransfer.htm"><s:text name="lable.frontuserleft.Makeelectronicbanktransfer" /> </a>
										<a href="showMakeAndCheckPayPalPayments.htm"><s:text name="lable.frontuserleft.MakeandcheckPayPalpayments" /></a>
										<a href="invoices.htm"><s:text name="lable.frontuserleft.Invoices" /></a>
										<a href="viewAccountSheet.htm"><s:text name="lable.frontuserleft.Accountsheet" /></a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="myadvertisements.htm" class="categories-arrow-text" onmouseover="mopen('dropmenu61', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.Advertising" /></a>
								</td>
							</tr>
							<tr>
								<td id="mddm">
									<div id="dropmenu61" onmouseover="mcancelclosetime()"
										onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="myadvertisements.htm"><s:text name="lable.frontuserleft.Myadvertisements" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.myAdvertisement"/>)</span> </a>
										<a href="watchingothers.htm"><s:text name="lable.frontuserleft.Watchingothers" /> <span style="font-weight: normal;">(<s:property value="#attr.myAccountCount.advertisingWatchingOthers"/>)</span> </a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="showAddNewCampaign.htm" class="categories-arrow-text" onmouseover="mopen('dropmenu71', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.BannerAdvertising" /></a>
								</td>
							</tr>
							<tr>
								<td id="mddm">
									<div id="dropmenu71" onmouseover="mcancelclosetime()" onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="showAddNewCampaign.htm"><s:text name="lable.frontuserleft.AddNewCampaign" /></a>
										<a href="showManageAccounts.htm"><s:text name="lable.frontuserleft.ManageCampaign" /></a>
										<a href="advertiserReport.htm"><s:text name="lable.frontuserleft.Advertiserreport" /></a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="crossPromotion.htm" class="categories-arrow-text"><s:text name="lable.frontuserleft.Crosspromotion" /></a>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="blockBuyer.htm" class="categories-arrow-text"><s:text name="lable.frontuserleft.Blocklist" /></a>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="#" class="categories-arrow-text" onmouseover="mopen('dropmenu81', this, 'categories-arrow-text')" onmouseout="mclosetime()"><s:text name="lable.frontuserleft.Editprofile" /></a>
								</td>
							</tr>
							<tr>
								<td id="mddm">
									<div id="dropmenu81" onmouseover="mcancelclosetime()" onmouseout="mclosetime()" style="visibility: hidden;">
										<a href="editRegistrationForm.htm"><s:text name="lable.frontuserleft.Registrationinformation" /></a>
										<a href="companyProfile.htm"><s:text name="lable.frontuserleft.Companyprofile" /></a>
										<a href="showAboutMe.htm"><s:text name="lable.frontuserleft.Aboutme" /></a>
									</div>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="affiliateLink.htm" class="categories-arrow-text">Affiliate Link</a>
								</td>
							</tr>
							<tr>
								<td>
									<div class="categories-separator-bg" style="margin: 7px 0px 7px 0px"><img src="images/framework/blank.gif" alt=" " /></div>
								</td>
							</tr>
							<tr>
								<td>
									<a href="showMessagingSystem.htm" class="categories-arrow-text"><s:text name="lable.frontuserleft.MessagingSystem" /></a>
								</td>
							</tr>
						</table>
					</div>
				</td>
				<td width="11" valign="top" class="left-bg">
	            <div style="margin:0px 0px 0px 0px" class="left-top-bg"></div>
	            </td>
			</tr>
			<tr>
				<td valign="bottom" class="left-bg">
	        	 <div style="margin:0px 0px 0px 0px" class="left-bottom-bg"></div>
	        	</td>
			</tr>
		</table>
	</div>
</div>

</s:if>
<s:else>
<%@ include file="/panels/front-categories.jsp" %>
</s:else>